package com.ef.service;

import java.util.List;

import com.ef.domain.ClassUnit;
import com.ef.domain.Course;
import com.ef.util.CustomExample;
import com.ef.util.PaginationSupport;

public interface CourseService extends BaseService {

	public PaginationSupport<Course> findByExample(
			CustomExample<Course> example, int startIndex, int pageSize);
	
	public void saveOrUpdate(Course entity);
	
	public void delete(Course entity);
	
	public Course findById(Long id);
	
	public List<Course> findALL();
	
	public void saveSelectedClass(List<ClassUnit> classUnits);
	
	public void deleteByCourse(Course course);
	
	public List<ClassUnit> findByCourse(Course course);
}
